import Vue from 'vue'
import Router from 'vue-router'
import IndexPage from 'pages/Index'
import ListPage from 'pages/List'


Vue.use(Router)

export default new Router({
  //mode: 'history',//去掉http://localhost:8080/#/中的/#/,由于路由的hash和history之分，默认是hash模式，会有#，把mode改成history，就没了，
  //详情查看http://www.ruanyifeng.com/blog/2011/03/url_hash.html
  mode: 'hash',
  routes: [
    {
      path: '/',//'/Index'
      name: 'IndexPage',
      component: IndexPage
    },
    {
      path: '/List',
      name: 'ListPage',
      component: ListPage
    }
  ]
})
